
#include "CudaBNImplementation.h"

int BN_add_word_ver2(BIGNUM *a, BN_ULONG w)
	{
	BN_ULONG l;
	int i;

	w &= BN_MASK2;


	for (i = 0; i < 4; ++i)
	{
		l = (a->d[i]+w)&BN_MASK2;
		a->d[i]=l;
		if (w <= l)
		{
			break;
		}
		w = l;
	}
	if (i >= a->top)
		a->top++;

	return(1);
	}
